<#assign pageTitle = "第三方登录绑定" />
<#assign pageHeader>
	<link rel="stylesheet" href="/static/css/login.css">
</#assign>
<#assign pageContent>
<div class="body-wrap">
	<div class="third-party content-wrap">
		<div class="form-box">
			<h2 class="title">关联“${siteCompany.siteName!}”账号</h2>
			<div class="Basic">
				<div>
					<#if userThird.avatar??>
						<img src="${userThird.avatar}">
					<#else>
						<img src="/static/qdxwx/img/avatar-boy.gif" alt="">
					</#if>
				</div>
				<p style="font-weight: bold;">${userThird.name}</p>
				<p>
					<tt class="c-999">您正在使用</tt>
					<tt class="c-master">
						<#if userThird.type==0>QQ账号</#if>
						<#if userThird.type==1>微信</#if>
					</tt>
					<tt class="c-999">登录${siteCompany.siteName!}</tt>
				</p>
				<div class="clear"></div>
			</div>
			<div class="menu" id="regBunding">
				<ul class="third-p-form">
					<li>
						<p class="form-title">手机号码</p>
						<input id="binding_mobile" type="text" maxlength="11" class="t-p-inp" placeholder="请输入常用手机号">
					</li>
					<li>
						<p class="form-title">验证码</p>
						<input id="binding_ran_code" type="text" maxlength="6" class="t-p-inp fl" placeholder="请输入右侧验证码">
						<a class="code" href="javascript:void(0)">
							<img class="login_ran_code" src="/auth/captcha/text" alt="验证码" onclick="this.src='/auth/captcha/text?random='+Math.random();" style="height: 41px">
						</a>
					</li>
					<li>
						<p class="form-title">手机短信码</p>
						<input id="binding_mobile_code" type="text" class="t-p-inp fl" maxlength="6" placeholder="请输入手机短信码">

						<a href="javascript:void(0)" id="btn_send_binding" class="layui-btn layui-btn-primary">获取短信码</a>
					</li>
					<li>
						<a href="javascript:void(0)" id="binding_button" class="layui-btn layui-btn-danger layui-btn-lg">确认关联手机</a>
					</li>
				</ul>
			</div>
		</div>
</div>
</div>
</#assign>
<#assign pageFooter>
	<script type="text/javascript">
		var qdxRedirect = "${comeUrl!}";
		var qdxState = "${qdxState!}";
	</script>
	<script type="text/javascript" src="/static/js/auth/binding.js?v=2021082015"></script>
</#assign>
<#include "../layouts/layout.ftl">